import 'package:f_bace_one/components/custom_scroll_view_case.dart';
import 'package:f_bace_one/components/gird_view_cout.dart';
import 'package:f_bace_one/components/order_item_case.dart';
import 'package:f_bace_one/components/order_list_case.dart';
import 'package:f_bace_one/http/dio_case.dart';
import 'package:flutter/material.dart';
// 无状态组件(封装静态结构)
// class 自定义组件名称 extends StatelessWidget {}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('hello flutter'),
          backgroundColor: Colors.blue,
          centerTitle: true,
          leading: const Icon(Icons.menu),
          actions: const [
            Icon(Icons.search),
          ],
          foregroundColor: Colors.white,
        ),
        // body: const ScrollCase(),
        // body: ListCase(),
        // body: const CustomScrollViewCase(),
        body: const DioCase(),
      ),
    );
  }
}
